#pragma once
#include "framework.h"

using namespace poly;

class Game : public IGame
{
public:
	Game( HINSTANCE hInst, HWND hWnd );
	~Game();

	virtual void onCreateGraphics( D3DDevice device );
	virtual void onResetGraphics( D3DDevice device );

	virtual void onFrameMove(float dt);
	virtual void onFrameRender(float dt);

	virtual void onLostGraphics();
	virtual void onDestroyGraphics();

private:
	D3DDevice	m_d3dDevice;

	SInput		m_input;
	Camera		m_camera;

	RigidPoly	m_poly;
	RigidPoly	m_ground;
	Dynamics	m_dynamics;

	RigidCollision	m_collision;
};
